//
//  UIView+TIXExtension.h
//  Miao
//
//  Created by Tix Xie on 2017/11/2.
//  Copyright © 2017年 TixXie. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (TIXExtension)

@property (nonatomic, assign) CGFloat x;
@property (nonatomic, assign) CGFloat y;
@property (nonatomic, assign) CGFloat width;
@property (nonatomic, assign) CGFloat height;
@property (nonatomic, assign) CGSize size;
@property (nonatomic, assign) CGFloat centerX;
@property (nonatomic, assign) CGFloat centerY;

/**
 * 判断一个控件是否真正显示在主窗口
 */
- (BOOL)isShowingOnKeyWindow;

/**
 快速加载xib
 
 @return 返回与自己同名的xib
 */
+ (instancetype)viewFromXib;

- (UIView*)snapshotView;
- (void)removeAllSubviews;

@end
